package com.design.patterns.behavioralModel.factoryMethod.staticFactory;

import java.math.BigDecimal;

/**
 * 这里是静态工厂的具体实现
 */
public class NumberUtils {
    public static int parse(String num) {
        return new BigDecimal(num).intValue();
    }
}
